function checkit() {
	var rnt = true;
	if (isblank(document.form1.STAMP_NO)) {
		rnt = false;
		alert("请填写油票编号");
	} else if (isblank(document.form1.STAMP_LR)) {
		rnt = false;
		alert("请填写油票来源");
	} else if (isblank(document.form1.STAMP_TYPE)) {
		rnt = false;
		alert("请选择燃油类型");
	} else if (!isfloat(document.form1.STAMP_SIZE)) {
		rnt = false;
		alert("请填写正确的燃油量");
	} else if (!isinteger(document.form1.STAMP_KC)) {
		rnt = false;
		alert("请填写正确的库存数");
	}

	return rnt;
}

/**
 * 更新成功后回调函数
 */
function forwardFunc() {
	window.location.href = context
			+ '/system/tablequery/jsplist.jsp?queryKey=stemplist';
}

/**
 * 初始化form表单项
 * 
 * @param {}
 *            json
 */
function initFunc(json) {
	if (json != null) {
		$('STAMP_ID').value = json.data.STAMP_ID;
		$('STAMP_NO').value = json.data.STAMP_NO;
		$('STAMP_LR').value = json.data.STAMP_LR;
		$('STAMP_KC').value = json.data.STAMP_KC;
		$('STAMP_SIZE').value = json.data.STAMP_SIZE;
		$('STAMP_DESC').value = json.data.STAMP_DESC;
		initwordbook4select('stemp_type', json.data.STAMP_TYPE, 'STAMP_TYPE', true);
	} else {
		initwordbook4select('stemp_type', '', 'STAMP_TYPE', true);
	}
}